package com.k12.admim.service;

import com.k12.admim.model.vo.sys.SysDeptVo;
import com.k12.common.model.resp.R;

import java.util.List;

public interface OperatorDeptService {

    List<SysDeptVo> selectDeptList(SysDeptVo dept);

    boolean checkDeptNameUnique(SysDeptVo dept);

    R insertDept(SysDeptVo dept);

    boolean checkDeptDataScope(Long deptId, String tenantId);

    R selectDeptById(Long deptId,String tenantId);

    int selectNormalChildrenDeptById(Long deptId,String tenantId);

    void updateDept(SysDeptVo dept);

    boolean hasChildByDeptId(Long deptId,String tenantId);

    boolean checkDeptExistUser(Long deptId, String tenantId);

    void deleteDeptById(Long deptId, String tenantId);
}
